package com.chj.comp.service.demo2.controller;

import com.chj.comp.common.core.feign.RemoteDemo1Service;
import com.chj.comp.common.core.util.Result;
import com.chj.comp.common.core.dto.Demo1SchedulerJobDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：cuihui
 * @date ：Created in 2022/1/18
 * @description：测试feign调用
 * @modified By：
 */
@RestController
@Api(tags = "远程调动测试接口")
public class FeignTestController {

    @Autowired
    private RemoteDemo1Service remoteDemo1Service;

    @GetMapping("/feignTest")
    @ApiOperation(value = "测试接口")
    public Result<Demo1SchedulerJobDTO> feignTest(){
        return remoteDemo1Service.getTbSchedulerJobDetail("anjuke_job");
    }
}
